﻿<%@ Page Language="vb" MasterPageFile="~/template/PSP/Master/Default.Master" AutoEventWireup="false" CodeBehind="Contact.aspx.vb" Inherits="MeoTom.Web.Blog.Contact" %>
<%@ OutputCache Duration="7200" VaryByParam="none" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ctph" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<h2>Liên hệ</h2>
<p>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        
            <ul>
                <li class="colleft fl" style="list-style:none;margin:0;padding:0;">Họ và tên:</li>
                <li class="colright fr" style="list-style:none;margin:0;padding:0;">
                    <asp:TextBox ID="txtFullName" runat="server" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtFullName" Display="Dynamic" 
                        ErrorMessage="* Xin vui lòng nhập họ và tên"></asp:RequiredFieldValidator>
                </li>
                <li class="colleft fl" style="list-style:none;margin:0;padding:0;">Email:</li>
                <li class="colright fr" style="list-style:none;margin:0;padding:0;">
                    <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" 
                        ErrorMessage="* Xin vui lòng nhập Email"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" Display="Dynamic" 
                        ErrorMessage="* Email sai định dạng" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </li>
                <li class="colleft fl" style="list-style:none;margin:0;padding:0;">Tiêu đề liên hệ:</li>
                <li class="colright fr" style="list-style:none;margin:0;padding:0;">
                    <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox>
                </li>
                <li class="colleft fl" style="list-style:none;margin:0;padding:0;">Nội dung liên hệ:</li>
                <li class="colright fr" style="list-style:none;margin:0;padding:0;height:173px;">
                    <asp:TextBox ID="txtBody" runat="server" Height="137px" TextMode="MultiLine" 
                        Width="290px"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtBody" Display="Dynamic" 
                        ErrorMessage="* Xin vui lòng nhập nội dung liên hệ"></asp:RequiredFieldValidator>
                </li>
                <li class="colleft fl" style="list-style:none;margin:0;padding:0;">&nbsp;</li>
                <li class="colright fr" style="list-style:none;margin:0;padding:0;">
                    <asp:Button ID="btnContact" CssClass="btnSubmit" runat="server" Text="Gửi liên hệ" />
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>Loading...</ProgressTemplate>
                    </asp:UpdateProgress>
                </li>
            </ul>            
        </ContentTemplate>
    </asp:UpdatePanel>
</p>
</asp:Content>